package application
{
	public class ApplicationConstants
	{
		public static var TOKEN_HEADER:String = "X-Token-Auth-Header"; 
		
		public static var ROOT_URL:String = "http://192.168.1.2:9993/sovi-server-rest/rest";
		
		public function ApplicationConstants()
		{
		}
		
		public static function getUrl(servlet:String, getParams:String):String {
			return (ROOT_URL + servlet + "?" + getParams);
		}

		/* Atributos */
	
		public static var TOKEN_ATTR:String = "tokenAttr";
		
		public static var USUARIO_LOGADO_ATTR:String = "usuarioLogadoAttr";
		
		/* Resources */
		
		public static var AUTENTICACAO_USUARIOS_BY_EMPRESA_RESOURCE:String = "/autenticacao/getUsuarioByCodigoEmpresa"; 
		
		public static var EFETUAR_LOGIN_RESOURCE:String = "/autenticacao/efetuarLogin";
		
		public static var DISPOSITIVOS_FROM_USUARIO:String = "/dispositivo/allByEmpresa";
		
		public static var UPDATE_RASTREAMENTO_POSITION:String = "/ponto/ultimoFromDispositivo";

	}
}